$(function(){

    //人才合作
    var personnel ={
    };

    /**
     * 初始化获取产品轮播图信息
     * **/
    personnel.initBanner = function(){
        $.ajax({
            async: false,
            url: '/banner/findBannerByBannerType',
            data: {'bannerType': 3, "bannerPosition": 3},
            success: function (result) {
                if (result && result.code == 200) {
                    if (result.data.bannerUrl != '') {
                        $('#job-position-img').find('img').attr("src", result.data.bannerUrl);
                    }
                }
            },
            error: function () {
                layer.alert('服务器出错啦！', {icon: 2, title: '错误'});
            }
        });
    }

    personnel.initPerson = function(){
        $.ajax({
            async: false,
            url: '/content/findContentPersonRecruit',
            success: function (result) {
                if (result && result.code == 200) {
                    if (result.data != '') {
                        $("#contentText").html(result.data.contentText);
                        $("#url").attr("src",result.data.url);
                        $(".brief img").attr("src", result.data.advertUrl);
                    }
                }
            },
            error: function () {
                layer.alert('服务器出错啦！', {icon: 2, title: '错误'});
            }
        });
    }

    //初始化
    /*personnel.initBanner();
    personnel.init();*/
    personnel.initPerson();
    header.selLiCss("hz");
    //面包屑名称
    $("#menu-ico span").html("•&nbsp;&nbsp;企业合作&nbsp;&nbsp;•&nbsp;&nbsp;人才合作");
});